package com.mh.dao;

import java.util.Date;
import java.util.List;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;
import org.springframework.dao.DataAccessException;

import com.mh.domain.Product;

/**
 * DAO to manage Product entities.
 * 
 */
public interface ProductDAO extends JpaDao<Product> {

	/**
	 * JPQL Query - findProductByNameContaining
	 *
	 */
	public Set<Product> findProductByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findProductByNameContaining
	 *
	 */
	public Set<Product> findProductByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByModifiedByContaining
	 *
	 */
	public Set<Product> findProductByModifiedByContaining(String modifiedBy) throws DataAccessException;

	/**
	 * JPQL Query - findProductByModifiedByContaining
	 *
	 */
	public Set<Product> findProductByModifiedByContaining(String modifiedBy, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByPrice
	 *
	 */
	public Set<Product> findProductByPrice(java.lang.Double price) throws DataAccessException;

	/**
	 * JPQL Query - findProductByPrice
	 *
	 */
	public Set<Product> findProductByPrice(Double price, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByCreatedOn
	 *
	 */
	public Set<Product> findProductByCreatedOn(java.util.Date createdOn) throws DataAccessException;

	/**
	 * JPQL Query - findProductByCreatedOn
	 *
	 */
	public Set<Product> findProductByCreatedOn(Date createdOn, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByName
	 *
	 */
	public Set<Product> findProductByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findProductByName
	 *
	 */
	public Set<Product> findProductByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByModifiedBy
	 *
	 */
	public Set<Product> findProductByModifiedBy(String modifiedBy_1) throws DataAccessException;

	/**
	 * JPQL Query - findProductByModifiedBy
	 *
	 */
	public Set<Product> findProductByModifiedBy(String modifiedBy_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByCreatedByContaining
	 *
	 */
	public Set<Product> findProductByCreatedByContaining(String createdBy) throws DataAccessException;

	/**
	 * JPQL Query - findProductByCreatedByContaining
	 *
	 */
	public Set<Product> findProductByCreatedByContaining(String createdBy, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductById
	 *
	 */
	public Product findProductById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findProductById
	 *
	 */
	public Product findProductById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByCreatedBy
	 *
	 */
	public Set<Product> findProductByCreatedBy(String createdBy_1) throws DataAccessException;

	/**
	 * JPQL Query - findProductByCreatedBy
	 *
	 */
	public Set<Product> findProductByCreatedBy(String createdBy_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByModifiedOn
	 *
	 */
	public Set<Product> findProductByModifiedOn(java.util.Date modifiedOn) throws DataAccessException;

	/**
	 * JPQL Query - findProductByModifiedOn
	 *
	 */
	public Set<Product> findProductByModifiedOn(Date modifiedOn, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findProductByPrimaryKey
	 *
	 */
	public Product findProductByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findProductByPrimaryKey
	 *
	 */
	public Product findProductByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllProducts
	 *
	 */
	public Set<Product> findAllProducts() throws DataAccessException;

	/**
	 * JPQL Query - findAllProducts
	 *
	 */
	public Set<Product> findAllProducts(int startResult, int maxRows) throws DataAccessException;
	
	public List<Product> findAllProducts(Product product, int startResult, int maxRows);
	
	public Set<Product> findProducts(Product product) throws DataAccessException;

}